-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use PATH env variable when gcc found in PATH #3895
Conversation
Resolves the github issue ARMmbed#3790: Blinky fails to build (on Mac) after addition of linker script preprocessing feature. Paraphrasing, this issue is that Homebrew on mac does not install `arm-none-eabi-gcc` in the same location as `arm-none-eabi-cpp`, the C Pre-Processor. The tools prior to this commit, and after turning on the pre-processing of the linker-script will fail on any Mac homebrew installed toolchains. This commit resolves the above issue by allowing the toolchain's path to the executable to remain empty after a call to `check_executable`. When this path is empty, the tools will search the PATH environment variable for the executable.
cc @Patater |
Expected to come as part of this PR? |
@0xc0170 Yes. |
@0xc0170 Unit test added. |
I tested this out to verify that it fixes my problem, and hey, it does! Thanks a lot! |
Thanks for testing it @Patater! We now have a regression test in this PR, so once it's merged we should not be allowed to merge code that breaks this behavior. |
retest uvisor |
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
retest uvisor |
Resolves the github issue #3790: Blinky fails to build (on Mac) after
addition of linker script preprocessing feature. Paraphrasing, this
issue is that Homebrew on mac does not install
arm-none-eabi-gcc
inthe same location as
arm-none-eabi-cpp
, the C Pre-Processor. The toolsprior to this commit, and after turning on the pre-processing of the
linker-script will fail on any Mac homebrew installed toolchains.
This commit resolves the above issue by allowing the toolchain's path to
the executable to remain empty after a call to
check_executable
. Whenthis path is empty, the tools will search the PATH environment variable
for the executable.
TODO